﻿namespace PmSoft.FileStorage;

public interface IFileStorage
{
    Task<string> PutFileAsync(string bucketName, string fileName, Stream stream);

    Task<string> PutFileAsync(string bucketName, string fileName, byte[] fileData);

    Task<byte[]> GetFileAsync(string bucketName, string fileName);

    /// <summary>
    /// 预览文件
    /// </summary>
    /// <param name="bucketName"></param>
    /// <param name="fileName"></param>
    /// <returns></returns>
    Task<string> PresignedGetObject(string bucketName, string fileName);
}
